# Contributor: Sodface <sod@sodface.com>
# Maintainer: Sodface <sod@sodface.com>
pkgname=odio-edit
pkgver=23.12.1
pkgrel=0
pkgdesc="Lightweight audio wave editor"
url="https://tari.in/www/software/odio-edit/"
arch="all"
license="GPL-3.0-or-later"
subpackages="$pkgname-lang"
depends="
	dconf
	gst-libav
	gst-plugins-bad
	gst-plugins-good
	gst-plugins-ugly
	"
makedepends="
	cmake
	cmake-extras
	gettext-dev
	gst-plugins-base-dev
	gtk+3.0-dev
	intltool
	libodiosacd-dev
	samurai
	"
options="!check" # no test suite
source="$pkgname-$pkgver.tar.gz::https://github.com/tari01/odio-edit/archive/refs/tags/$pkgver.tar.gz"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
0367a0d59e64c2d9829bf3e467a86d392c6e5abe30f6ade6fc7fa3500b7240e0717bd21f40a8efafca4267f1e59c3554cbeb08463d246a4832f55e576b669ede  odio-edit-23.12.1.tar.gz
"
